package vn.edu.nuce.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name="phong_may")
public class PhongMay {

	private String id;
	private String tenPhongMay;
	private String moTa;
	private int soMayTinh;
	private boolean status;
	
	public PhongMay(){
	}
	public PhongMay(String id, String tenPhongMay){
		this.id=id;
		this.tenPhongMay=tenPhongMay;
	}
	
	@Id
	@Column(name="id")
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	@Column(name="ten_phong_may")
	public String getTenPhongMay() {
		return tenPhongMay;
	}
	public void setTenPhongMay(String tenPhongMay) {
		this.tenPhongMay = tenPhongMay;
	}
	@Column(name="mo_ta")
	public String getMoTa() {
		return moTa;
	}
	public void setMoTa(String moTa) {
		this.moTa = moTa;
	}
	@Column(name="so_may_tinh")
	public int getSoMayTinh() {
		return soMayTinh;
	}
	public void setSoMayTinh(int soMayTinh) {
		this.soMayTinh = soMayTinh;
	}
	@Column(name="status",nullable = false, columnDefinition = "TINYINT(1)")
	public boolean isStatus() {
		return status;
	}
	public void setStatus(boolean status) {
		this.status = status;
	}
	
	
}
